package com.bwie.auth.remote.factory;

import com.bwie.auth.remote.SystemRemote;
import com.bwie.common.domain.User;
import com.bwie.common.result.Result;
import org.springframework.cloud.openfeign.FallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;

/**
 * @className: SystemRemote
 * @Description: TODO
 * @version: v1.８.0
 * @author:
 * @date:
 */
@Component
public class SystemRemoteImpl implements FallbackFactory<SystemRemote> {
    @Override
    public SystemRemote create(Throwable cause) {
        return new SystemRemote() {
            @Override
            public Result<User> findByTel(User user) {
                return Result.error("服务器异常");
            }
        };
    }
}

